<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
          name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable"/>
    <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
    <meta content="telephone=no" name="format-detection"/>
    <meta name="csrf-token" content="cPqshWzq8AP6CPB3WnTjWi7etMHthoseg6rFAYVE">
    <title>采购单详情</title>
    <meta name="description" content="采购单详情"/>
    <meta name="Keywords" content="采购单详情"/>
    {include file="common/link" /}
    <style>
        .reward_text {
            text-align: right;
            padding-right: 15px;
        }
    </style>
</head>
<body class="body-1">
<div id="container">
            <div class="mui-bar-tab cart-btn-box centerflex line-top">
                <div class="total-price box-flex-1 text-l">
                    <p>共<em class="selectedNum" >{$row.order_goods_total}</em>件商品</p>
                    <p class="total">合计：<span class="red" >{$row.order_price}</span>元</p>
                </div>
                <a class="adopt" href="javascript:;" {if condition="$row.status == 1"} style="background-color: slateblue"{else /}style="display: none" {/if}>通过</a>
                <a class="reject" href="javascript:;"  {if condition="$row.status == 1"} {else /}style="display: none" {/if}>驳回</a>
                <a class="" href="javascript:history.go(-1);" >返回</a>
            </div>

            <div class="mui-content">
<!--         <div class="receiving-address bgcolor-white mb10 arrow">-->
         <div class="receiving-address bgcolor-white" style="border-radius:15px;margin-top: 3px;">
             <a href="javascript:void (0)" class="highlight  select_adr">
                <h2 class="ft14 clearfix">
                    <span class="fl">{$srow.contacts}</span>
                    <span class="fr">{$srow.mobile}</span>
                </h2>
                <p class="ft13">
                    所属公司：{$srow.nickname}
                 </p>
             </a>
         </div>

<!--         <div class="home-link-box bgcolor-white">-->
<!--             <a href="javascript:;">-->
<!--                 <i class="iconfont icon-shop"></i>-->
<!--            </a>-->
<!--         </div>-->

                <div class="order-item-c line-top line-bot bgcolor-white" style="border-radius:15px;margin-top: 4px;">
                    {volist name="list" id="vo"}
                    <a class="order-pro-item centerflex">
<!--                        <span class="tips" v-if="goods.is_give">赠品</span>-->
                        <div class="img">
                            <img src="https://erp.gotobby.com/assets/web/images/zanwu.png" class="img-wh">
                        </div>
                        <div style="width: 60%">
                            <div class="txt box-flex-1">
                                <h2 class="title">{$vo.title}</h2>
                                <p class="clearfix">
                                    <span class="attribute fl" ><em >{$vo.specs}</em></span>
                                </p>
                            </div>
                        </div>
                        <div style="width: 8%;" class="fr">
                                 <span class="red-price ">
                                    ¥<em class="pro-price">{$vo.ht_price}</em>
                                 </span>
                            <span class="num ">×<em class="ft14" >{$vo.goods_num}</em></span>
                        </div>
                    </a>
                    {/volist}
                </div>

<!--         <div class="settlement-item centerflex bgcolor-white line-top">-->
<!--             <label>运费</label>-->
<!--             <span class="red-price box-flex-1 reward_text"><em>免运费</em></span>-->
<!--         </div>-->

                <div  style="border-radius:15px">
                    <div class="settlement-item centerflex bgcolor-white line-top">
                        <label>税点</label>
                        <span class="red-price box-flex-1 reward_text"><em class="pro-price">{$row.tax}</em>%</span>
                    </div>
                    <div class="settlement-item centerflex bgcolor-white line-top">
                        <label>小计</label>
                        <span class="red-price box-flex-1 reward_text">¥<em class="pro-price">{$row.order_price}</em></span>
                    </div>
                    <div class="settlement-item centerflex bgcolor-white line-top">
                        <label>备注说明</label>
                        <span class="red-price box-flex-1 reward_text">{$row.explain}</span>
<!--                        <input type="text" placeholder="在此输入留言内容" class="box-flex-1" value="{$row.explain}">-->
                    </div>
                </div>
     </div>
    {include file="common/left-nav" /}
    {include file="common/script" /}
    <script src="__CDN__/assets/web/plugins/fastclick.js"></script>
    <script src="__CDN__/assets/web/js/place.js"></script>
</body>
</html>
<script>
    //通过
    $('.adopt').click(function () {
        layer.confirm('审核通过？', {
            btn: ['确定','取消'] //按钮
        }, function(){
            ajax(2)
        }, function(){

        });
    })
    //驳回
    $('.reject').click(function () {
        layer.confirm('确认驳回吗？', {
            btn: ['确定','取消'] //按钮
        }, function(){
            ajax(5)
        }, function(){

        });
    })
    function ajax(state) {
        var url = "{$turl}"+'/web/order/detail?ids='+"{$ids}"
        $.post(url,{status:state},function (res) {
            layer.msg(res.msg)
            if(res.code >0){
                setTimeout(function () {
                    window.location.reload()
                },800)
            }
        })
    }
</script>
<!---带扇形 不带footer->
